home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17548 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: fiesta.srl.ford.com!usenet
  2. From: jmccall4@sl0270.srl.ford.com (James McCallum)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: int::~int()
  5. Date: 16 Apr 1996 13:31:08 GMT
  6. Organization: SRL, Ford Motor Company
  7. Message-ID: <4l07es$682@fiesta.srl.ford.com>
  8. References: <marnoldDpuDu9.D7s@netcom.com>
  9. Reply-To: jmccall4@sl0270.srl.ford.com
  10. NNTP-Posting-Host: cae002.srl.ford.com
  11.  
  12. In article <marnoldDpuDu9.D7s@netcom.com>, marnold@netcom.com (Matt Arnold) writes:
  13. >Xu Yifeng <jafd@public.sta.net.cn> writes:
  14. >
  15. >>Hi everybody,
  16. >
  17. >>can your compiler compile following program?
  18. >
  19. >>//------------------------
  20. >>void main()
  21. >>{
  22. >>     int i = 0;
  23. >
  24. >>     i.int::~int();
  25. >>}
  26. >>//------------------------
  27. >
  28. >>is it a legal C++ program?
  29. >
  30. >It's supposed to be, but most C++ compiler's will not compile it.
  31. >
  32.  
  33. Both the Sun C+= 4.1 and g++ 2.7.2 compile this program but both complain
  34. that main should return an int type :-;
  35.  
  36.  
  37. -- 
  38. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  39. *                                         *
  40. *            --        James McCallum        Ford Motor Company   *
  41. *                  / /         jmccall4@ford.com    +1 313 248 9017         *
  42. *                 | /                                 *
  43. *     *<%%%%%%%%%%|(===================================--             *
  44. *                 | \                                 *
  45. *           \ \      jmccall4@sl0270.srl.ford.com             *
  46. *                   --                                 *
  47. *                                         *
  48. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  49.  
  50.  
  51.